package com.hly.model;

import javax.xml.crypto.Data;
import java.util.Date;
import java.util.List;

/**
 * @program: hly_emall_ssm
 * Author HLY
 * @desc
 * @create: 2020-10-12 10:15
 **/
public class Orders {
    /**
     * 订单状态 - 未付款
     */
    public static final byte STATUS_UNPAY = 1;
    /**
     * 订单状态 - 已付款
     */
    public static final byte STATUS_PAYED = 2;
    /**
     * 订单状态 - 配送中
     */
    public static final byte STATUS_SEND = 3;
    /**
     * 订单状态 - 已完成
     */
    public static final byte STATUS_FINISH = 4;
    /**
     * 支付方式 - 微信
     */
    public static final byte PAYTYPE_WECHAT = 1;
    /**
     * 支付方式 - 支付宝
     */
    public static final byte PAYTYPE_ALIPAT = 2;
    /**
     * 支付方式 - 线下
     */

    private Integer id;
    private Integer total;
    private Integer amount;
    private Byte status;
    private Byte paytype;
    private String name;
    private String phone;
    private String address;
    private Date systime;
    private Integer userId;
    private List<Items> itemList;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    public Integer getAmount() {
        return amount;
    }

    public void setAmount(Integer amount) {
        this.amount = amount;
    }

    public Byte getStatus() {
        return status;
    }

    public void setStatus(Byte status) {
        this.status = status;
    }

    public Byte getPaytype() {
        return paytype;
    }

    public void setPaytype(Byte paytype) {
        this.paytype = paytype;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Date getSystime() {
        return systime;
    }

    public void setSystime(Date systime) {
        this.systime = systime;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public List<Items> getItemList() {
        return itemList;
    }

    public void setItemList(List<Items> itemList) {
        this.itemList = itemList;
    }

    @Override
    public String toString() {
        return "Orders{" +
                "id=" + id +
                ", total=" + total +
                ", amount=" + amount +
                ", status=" + status +
                ", paytype=" + paytype +
                ", name='" + name + '\'' +
                ", phone='" + phone + '\'' +
                ", address='" + address + '\'' +
                ", systime=" + systime +
                ", userId=" + userId +
                ", itemList=" + itemList +
                '}';
    }
}
